/// <reference path="../Scripts/jquery-1.7.1.min.js" />
/// <reference path="../Scripts/knockout-2.1.0.js" />

jQuery(document).ready(function () {
    var MyApplicationRolesViewModel = new ApplicationRolesViewModel();
    ko.applyBindings(MyApplicationRolesViewModel, document.getElementById('AddApplicationRolesNode'));
    jQuery("#NewApplicationRolesForm").validate({
        submitHandler: function (form) {
            MyApplicationRolesViewModel.ApplicationRoles();
        },
        
				rules: {
					ApplicationRoleId: {
					required: true, 
					digits: true
					},
					RoleName: {
					required: true, 
					},
					TS: {
					required: true, 
					digits: true
					},
					ApplicationID: {
					required: true, 
					digits: true
					},
				}
            
        
        

        
    });



    

    

    
});